package com.lanou3g.k12.service;

import com.lanou3g.k12.entity.Event;
import com.lanou3g.k12.entity.EventContent;

import java.util.List;

public interface EventService {
//    添加标题
    void addEvent(String title,Long cid,Integer status,String content);
//    查询活动列表
    List<Event> findAllEvent(Integer page,Integer size);
//    根据id查找活动列表
    Event findById(Long id);
//
    void deleteEventById(Long id);

    void deleteEventsByIds(Long[] ids);

    List<Event> findEventByKeyword(Integer page, Integer size, String keyword);

    List<EventContent> findContentById(Long id);

    void updateStatus(Long id);

    void updateEventStatus(Long cid);

    void deleteEventByCid(Long cid);

    List<Event> findEventByCid(Long cid);

    Event findEventContentById(Long id);

    void updateEventContentById(EventContent eventContent);
}
